* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.todo-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.todo-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background-color: #f8f9fa;
    color: #333;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

.todo-list {
    list-style: none;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.todo-item:hover {
    transform: translateX(5px);
}

.todo-item.completed {
    background-color: #e8f5e9;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #666;
}

.todo-checkbox {
    margin-right: 1rem;
}

.todo-text {
    flex: 1;
}

.todo-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem;
    font-size: 0.9rem;
}

.edit-btn {
    background-color: #f39c12;
}

.delete-btn {
    background-color: #e74c3c;
}

.edit-btn:hover {
    background-color: #d35400;
}

.delete-btn:hover {
    background-color: #c0392b;
} 